Javascript Math Functions

Don't go past Zero

helpful for math about pricing where the number should not go below zero, as a negative number

let num = 5

num = Math.max(num - 9, 0)

console.log(num) //0